package krow.dev.contest.view;

import krow.dev.contest.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class FavoriteListHeaderWrapper {

	private View mRootView;

	private TextView mTitleView;

	public FavoriteListHeaderWrapper(Context context) {

		LayoutInflater layoutInflater = LayoutInflater.from(context);

		mRootView = layoutInflater.inflate(R.layout.drawer_favoritelist_header, null);

		mTitleView = (TextView) mRootView.findViewById(R.id.text_name);
	}

	public void setName(String name) {
		mTitleView.setText(name);
	}

	public View getView() {

		return mRootView;
	}
}
